module.exports = function (sequelize, DataTypes) {
    var model = sequelize.define("app_details",
        {
            id: {type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true},
            app_name: {type: DataTypes.STRING},
            package_name: {type: DataTypes.STRING},
            version_code: {type: DataTypes.INTEGER},
            version_name: {type: DataTypes.STRING},
            update_info: {type: DataTypes.STRING},
            channel_id: {type: DataTypes.STRING},
            apk_size: {type: DataTypes.INTEGER},
            download_url: {type: DataTypes.STRING},
            isforce: {type: DataTypes.INTEGER}
        }, {
            createdAt: 'created_at',
            updatedAt: 'updated_at'
        });
    sequelize.AppDetails = model;
    return model;
};